package com.itotem.android.everbridge.network;

import android.app.Activity;
import android.app.ProgressDialog;
import android.os.AsyncTask;

public class ReqDataAllTask extends AsyncTask<Object, Integer, Object> {

	ProgressDialog dialog;
	Activity  activity;
	boolean isShow = true;
    public void setIsShow(boolean isShow){
    	this.isShow = isShow;
    }
	
    public ReqDataAllTask(Activity activity){
        this.activity = activity;
    }
    
	 @Override
	   protected void onPreExecute() {
		   if(isShow){
		       dialog = new ProgressDialog(activity);
		       dialog.setMessage("Waiting......");
		       if(!dialog.isShowing()){
			       dialog.show();
		       }
		   }
	       super.onPreExecute();
	   }
	
	@Override
	protected Object doInBackground(Object... params) {
		// TODO Auto-generated method stub
		return null;
	}
	
	@Override
	protected void onPostExecute(Object result) {
		// TODO Auto-generated method stub
		super.onPostExecute(result);
	}

}
